-- GENERATED SPELL FOR [Amani Protective Ward] --


function spell0_23822(pUnit, Event) --@Protective Ward,Self--
pUnit:FullCastSpellOnTarget(42481,pUnit)
pUnit:RegisterEvent('Sorts_23822', 683, 1)
end

function Sorts_23822(pUnit, Event)
local choix_sorts_23822 = math.random(0, 0)
if choix_sorts_23822 == 0 then
pUnit:RegisterEvent('spell0_23822', 1, 1)
end
end

function mob23822_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23822', math.random(1500, 3000), 1)
end

function mob23822_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23822_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23822_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23822, 1, 'mob23822_Action')
RegisterUnitEvent(23822, 2, 'mob23822_Leave')
RegisterUnitEvent(23822, 3, 'mob23822_Kill')
RegisterUnitEvent(23822, 4, 'mob23822_Die')
